package com.szty.libarytest.dialog

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.szty.libarytest.R
import com.szty.libarytest.other.loge
import kotlinx.android.synthetic.main.activity_dialog.*

class DialogActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_dialog)
        val info = intent.getStringExtra("info")
        info?.loge()
        tv_info.setText(info)
        ll_dialog_parent.setOnClickListener { finish() }
    }
}